﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="TTIServer.TTISettings.DisplaySettings"
	x:Name="Display_Settings"
	Title="Display Settings"
	Width="1008" Height="935" Background="White" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">

     <Grid x:Name="LayoutRoot">
          <TextBox x:Name="txtOffsetX" HorizontalAlignment="Left" Height="23" Margin="299,695,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" Text="0"/>
          <TextBox x:Name="txtOffsetY" HorizontalAlignment="Left" Height="23" Margin="299,748,0,0" TextWrapping="Wrap" Text="0" VerticalAlignment="Top" Width="120"/>
          <TextBox x:Name="txtPixelsX" HorizontalAlignment="Left" Height="23" Margin="467,695,0,0" TextWrapping="Wrap" Text="2560" VerticalAlignment="Top" Width="120"/>
          <TextBox x:Name="txtPixelsY" HorizontalAlignment="Left" Height="23" Margin="467,748,0,0" TextWrapping="Wrap" Text="1600" VerticalAlignment="Top" Width="120"/>
          <CheckBox x:Name="sfEnable" Content="Enable Digitizer Scaling" HorizontalAlignment="Left" Margin="301,638,0,0" VerticalAlignment="Top" IsChecked="True"/>
          <Label Content="X Origin" HorizontalAlignment="Left" Margin="301,669,0,0" VerticalAlignment="Top"/>
          <Label Content="Y Origin" HorizontalAlignment="Left" Margin="301,723,0,0" VerticalAlignment="Top"/>
          <Label Content="Current X Pixels" HorizontalAlignment="Left" Margin="467,664,0,0" VerticalAlignment="Top"/>
          <Label Content="Current Y Pixels" HorizontalAlignment="Left" Margin="467,723,0,0" VerticalAlignment="Top"/>
          <RadioButton Content="Portrait" HorizontalAlignment="Left" Margin="626,698,0,0" VerticalAlignment="Top" Checked="RadioButton_Checked" Width="85" IsEnabled="False"/>
          <RadioButton Content="Landscape" HorizontalAlignment="Left" Margin="626,723,0,0" VerticalAlignment="Top" IsEnabled="False"/>
          <Button Content="OK" HorizontalAlignment="Left" Margin="370,816,0,0" VerticalAlignment="Top" Width="75" IsDefault="True"/>
          <Button Content="Apply" HorizontalAlignment="Left" Margin="467,816,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
          <Button Content="Cancel" HorizontalAlignment="Left" Margin="563,816,0,0" VerticalAlignment="Top" Width="75" IsCancel="True"/>
          <Frame Content="" Height="600" Margin="10,10,0,0" VerticalAlignment="Top" Width="960" BorderBrush="Black" BorderThickness="2" Foreground="White"/>
          <Canvas x:Name="DisplayCanvas" Height="600" Margin="10,10,0,0" VerticalAlignment="Top" Width="960" Background="Black">
               <Image x:Name="DisplayImg" Height="600" VerticalAlignment="Top" Width="960"/>
          </Canvas>
     </Grid>
</Window>